<%@tag description="Main Template" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%@attribute name="styles" fragment="true" %>
<%@attribute name="scripts" fragment="true" %>
<%@attribute name="pageTitle"  %>

<c:set var="applicationPath" value="${pageContext.request.contextPath}"/>

<!DOCTYPE html>
<html lang="pt">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <c:if test="${empty pageTitle}">
        <c:set var="pageTitle" value="Bagarita" />
    </c:if>
    <title>${pageTitle}</title>

    <!-- Bootstrap
    <link href="${applicationPath}/static/css/lib/bootstrap/bootstrap.min.css" rel="stylesheet">
    <link href="${applicationPath}/static/css/lib/bootstrap/bootstrap-theme.min.css" rel="stylesheet">
    <link href="${applicationPath}/static/css/main.css" rel="stylesheet"> -->
    <jsp:invoke fragment="styles" />
  </head>
  <body>
    <div class="container">
        <jsp:doBody/>
    </div>
    
    <jsp:invoke fragment="scripts" />
  </body>
</html>
